package com.chen.feign;

import com.chen.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "provdier")
public interface UserFeign {

    @RequestMapping("user/userById/{id}")
    User userById(@PathVariable Integer id);

    @RequestMapping("user/userId")
    User userWen(@RequestParam Integer id);

    @RequestMapping("user/users")
    User userU(@RequestBody User user);
}
